export function wxPay(data, callback){
    uni.requestPayment({
        provider: "wxpay",
        timeStamp: data.timeStamp,
        nonceStr: data.nonceStr,
        package: data.package,
        signType: data.signType,
        paySign: data.paySign,
        success: (res) => {
            uni.showToast({
                title: "支付成功",
                icon: "success"
            });
            callback && callback({code: 1});
        },
        fail: (err) => {
            uni.showToast({
                title: "支付失败",
                icon: "none"
            })
            callback && callback({code: 0});
            console.log("支付失败",)
        }
    })
}